﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;

namespace HDS.Common.Helper
{
    public static class ValidateHelper
    {
        public static bool IsEnglish(this string source)
        {
            //移除数字
            var source1 = Regex.Replace(source, @"\d", "");
            Regex regChina = new Regex("[^\x00-\xFF]");
            if (regChina.IsMatch(source1.Trim()))
            {
                return false;
            }
            else
            {
                return true;
            }
        }
    }
}
